import Vue from 'vue'
const host = process.env.API_HOST

export const gzhInfo = (eid) => {
  return Vue.http.get(`${host}/m/gzh/info`, { params: {eid} })
}

export const gzhUpdate = (id, content, field) => {
  return Vue.http.post(`${host}/m/gzh/update`, { id, content, field })
}

export const gzhList = (page, pageSize, fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/web/user/list`, { params: { page, pageSize, fuzzy, sctime, ectime } })
}

export const gzhCount = (fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/web/user/count`, { params: { fuzzy, sctime, ectime } })
}
